package com.example.springbook.service;

import com.example.springbook.mapper.UserInfoMapper;
import com.example.springbook.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;
    public UserInfo getUserInfoByname(String name){
        return userInfoMapper.getUserInfo(name);
    }

}
